import os
from google.appengine.ext.webapp import template
import cgi
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db
import datetime

class Log(db.Model):
    author = db.UserProperty()
    content = db.StringProperty(multiline=True)
    data = db.DateTimeProperty(auto_now_add=True)

class Logs(webapp.RequestHandler):
    def get (self):
        #log = Log()
        path = os.path.join(os.path.dirname(__file__), 'static/logs.html')
        self.response.out.write(template.render(path, ''))

application = webapp.WSGIApplication([('/logs', Logs),
                                                 ],debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
